import { post, get } from '../index'

export default {
  // 获取商品分类列表
  getMallsGoodsClassify () {
    return post('/shop/admin/AdminShopType/cateList')
  },
  // 商品分类列表上下架设置
  cateStatusUpdate (querys) {
    return post('/shop/admin/AdminShopType/cateStatusUpdate', querys)
  },
  // 添加商品分类
  addClassify (querys) {
    return post('/shop/admin/AdminShopType/cateAdd', querys)
  },
  // 获取分类信息和修改分类信息
  getOrModifyClassifyInfo (querys) {
    return post('/shop/admin/AdminShopType/cateUpdate', querys)
  },
  // 获取一级分类下拉框中值
  getSelectClassifyOptions () {
    return post('/shop/admin/AdminShopType/cateTop')
  },
  // 删除商品分类列表的值
  delGoodsClassify (querys) {
    return post('/shop/admin/AdminShopType/cateDelete', querys)
  },
  // 获取商品列表
  getGoodsList (querys) {
    return post('/shop/admin/AdminShopGoods/goodsList', querys)
  },
  // 编辑库存
  GoodsUpdateSpe (querys) {
    return post('/shop/admin/AdminShopGoods/updateSpe', querys)
  },
  // 上下架商品（status：1,0）和删除商品（status：-1）；首页推荐（index_show：1,0）
  upperAndDelGoods (querys) {
    return post('/shop/admin/AdminShopGoods/goodsStatusUpdate', querys)
  },
  // 添加商品信息
  addGoodsInfo (querys) {
    return post('/shop/admin/AdminShopGoods/goodsAdd', querys)
  },
  // 编辑商品信息
  editGoodsInfo (querys) {
    return post('/shop/admin/AdminShopGoods/goodsUpdate', querys)
  },
  // 获取商品列表和商品添加中的下拉菜单中的值(部门，分类)(商品编辑页面也会用)
  GoodsListSelect () {
    return post('/shop/admin/AdminShopGoods/companyAndCate')
  },
  // 上架中的商品分类/公司部门
  GoodsListSelectV2 () {
    return post('/shop/admin/AdminShopGoods/companyAndCateV2')
  },
  // 清除商品列表中的商品二维码
  clearGoodsQrCode () {
    return post('/shop/admin/AdminShopGoods/')
  },
  // 商品开关
  updateGoodsParameterStatus (query) {
    return post('/shop/admin/AdminShopGoods/goodsParameterStatus', query)
  },
  // 商品参数回写
  getGoodsParameterEdit (query) {
    return get('/shop/admin/AdminShopGoods/goodsParameterEdit', query)
  },
  // 商品参数编辑
  updateGoodsParameterEdit (query) {
    return post('/shop/admin/AdminShopGoods/goodsParameterEdit', query)
  },
  // 新增商品参数
  addGoodsParameterAdd (query) {
    return post('/shop/admin/AdminShopGoods/goodsParameterAdd', query)
  },
  // 获取商品参数列表
  getGoodsParameterList (query) {
    return post('/shop/admin/AdminShopGoods/goodsParameter', query)
  },
  // 添加模板
  goodsParameterTemplateAdd (query) {
    return post('/shop/admin/AdminShopGoods/goodsParameterTemplateAdd', query)
  },
  // 获取模板列表
  getGoodsParameterTemplateList (query) {
    return post('/shop/admin/AdminShopGoods/goodsParameterTemplate', query)
  },
  // 获取下拉选择参数
  getParameterTemplateList (query) {
    return post('/shop/admin/AdminShopGoods/getParameterList', query)
  },
  // 模板是否开启
  updateGoodsParameterTemplateStatus (query) {
    return post('/shop/admin/AdminShopGoods/goodsParameterTemplateStatus', query)
  },
  // 获取模板编辑
  getGoodsParameterTemplateEdit (query) {
    return post('/shop/admin/AdminShopGoods/goodsParameterTemplateEdit', query)
  },
  // 提交编辑数据
  updateGoodsParameterTemplateEdit (query) {
    return post('/shop/admin/AdminShopGoods/goodsParameterTemplateEdit', query)
  },
  // 获取增加商品下拉模板数据
  getGoodsTemplateOptions (query) {
    return get('/shop/admin/AdminShopGoods/parameterTemplateList', query)
  },
  // 根据模板id 获取模板数据
  getTemplateInfo (query) {
    return post('shop/admin/AdminShopGoods/getTemplateInfo', query)
  },
  // 删除二级属性判断
  isGoodsParameterTemplateDel (query) {
    return post('/shop/admin/AdminShopGoods/goodsParameterTemplateDel', query)
  },
  // 获取订单列表
  getGoodsOrderList (querys) {
    return post('/shop/admin/AdminShopOrder/orderList', querys)
  },
  // 导出订单
  exportOrder (querys) {
    return get('/shop/admin/AdminExcel/returnUrl', querys)
  },
  // 获取订单详情
  getOrderInfo (querys) {
    return post('/shop/admin/AdminShopOrder/orderInfo', querys)
  },
  // 获取订单设置信息回显
  orderSettingInfo () {
    return post('/shop/admin/AdminShopSetting/configInfo')
  },
  // 订单保存设置信息
  orderSetting (querys) {
    return post('/shop/admin/AdminShopSetting/configUpdate', querys)
  },
  // 支付设置、回显
  paymentSetting (querys) {
    return post('/shop/admin/AdminShopSetting/configPay', querys)
  },
  // 获取卡券列表
  getRedPackitList (querys) {
    return post('/shop/admin/AdminCoupon/couponList', querys)
  },
  // 修改卡券状态，信息回显
  updateRedPackitStatus (querys) {
    return post('/shop/admin/AdminCoupon/couponUpdate', querys)
  },
  // 添加卡券信息
  addRedPackitInfo (querys) {
    return post('/shop/admin/AdminCoupon/couponsAdd', querys)
  },
  // 获取卡券编辑页面下拉选项值
  getRedPakitOptions () {
    return post('/shop/admin/AdminCoupon/getGoodsAndCate')
  },
  // 商品的拼团列表
  getGoodsAssembleList (querys) {
    return post('/shop/admin/AdminShopCollage/goodsCollageList', querys)
  },
  // 拼团记录列表
  getAssembleRecordList (querys) {
    return post('/shop/admin/AdminShopCollage/collageList', querys)
  },
  // 编辑拼团和删除拼团
  editOrDelGoodsAssemble (querys) {
    return post('/shop/admin/AdminShopCollage/goodsCollageUpdate', querys)
  },
  // 添加拼团信息
  addAssembleInfo (querys) {
    return post('/shop/admin/AdminShopCollage/goodsCollageAdd', querys)
  },
  // 获取编辑拼团页面的下拉框的值
  getAssembleOptions (querys) {
    return post('/shop/admin/AdminShopCollage/getSpePrice', querys)
  },
  // 退款列表
  refundList (querys) {
    return post('/shop/admin/AdminShopOrderRefund/orderRefundList', querys)
  },
  // 立即退款
  settingRefundInfo (qeurys) {
    return post('/shop/admin/AdminShopOrderRefund/orderRefund', qeurys)
  },
  // 拒绝退款
  cancelRefund (querys) {
    return post('/shop/admin/AdminShopOrderRefund/cancelRefund', querys)
  },
  // 获取分销收益列表数据
  getDistributionProfirList (querys) {
    return get('/shop/admin/AdminSellingProfit/profitList', querys)
  },
  // 获取佣金信息列表
  getDistributionCommissionList (querys) {
    return get('/shop/admin/AdminSellingWater/waterList', querys)
  },
  // 获取提现列表
  getCashList (qeurys) {
    return get('/shop/admin/AdminSellingCash/cashList', qeurys)
  },
  // 确认到账
  confirmOnCash (querys) {
    return post('/shop/admin/AdminSellingCash/onCash', querys)
  },
  // 在线转账
  confirmWxCash (querys) {
    return post('/shop/admin/AdminSellingCash/wxCash', querys)
  },
  // 分销表单的数据回显与编辑
  getEditDistributionSetting (querys) {
    return post('/shop/admin/AdminSellingProfit/retailSetting', querys)
  },
  // 获取分销关系列表
  getDistributionRelationList (querys) {
    return get('/shop/admin/AdminSellingProfit/relationList', querys)
  },
  // 获取关系列表查找
  getDistributionRelationLookupList (querys) {
    return get('/shop/admin/AdminSellingProfit/relationSelect', querys)
  },
  // 查看申请详情
  getGetDistributorInfo (query) {
    return get('/shop/admin/AdminSellingProfit/getDistributorInfo', query)
  },
  // 审核申请
  updateExDistributor (query) {
    return get('/shop/admin/AdminSellingProfit/exDistributor', query)
  },
  // 获取申请列表
  getDistributorList (query) {
    return get('/shop/admin/AdminSellingProfit/getDistributor', query)
  },
  // 获取申请统计数量
  getDistributorCount () {
    return get('/shop/admin/AdminSellingProfit/getDistributorCount')
  },
  // 获取商城轮播图
  getMallsBanners (querys) {
    return post('/shop/admin/AdminShopBanner/bannerList', querys)
  },
  // 添加商城轮播图
  addMallsBanner (querys) {
    return post('/shop/admin/AdminShopBanner/bannerAdd', querys)
  },
  // 删除商城轮播图
  delMallsBanner (querys) {
    return post('/shop/admin/AdminShopBanner/bannerDel', querys)
  },
  // 编辑、上下架、回显商城轮播图
  editUpdateMallsBanner (querys) {
    return post('/shop/admin/AdminShopBanner/bannerUpdate', querys)
  },
  // 获取公司分类（下拉菜单）
  getMallsCompanyOptions (querys) {
    return post('/shop/admin/AdminShopBanner/getCompany', querys)
  },
  // 订单发货
  orderSettingSendGoods (querys) {
    return post('/shop/admin/AdminShopOrder/orderSend', querys)
  },
  // 订单自提
  orderSettingSelfGoods (querys) {
    return post('/shop/admin/AdminShopOrder/selfOrder', querys)
  },
  // 订单按部门、公司跟新
  getRefreshOrder () {
    return get('/shop/admin/AdminShopOrder/refreshOrder')
  },
  // 下载卡券码
  downloadRedPackitCode (querys) {
    return post('/shop/admin/AdminCoupon/couponShareQr', querys)
  },
  // 添加自提点
  storeAdd (querys) {
    return post('/shop/admin/AdminStore/storeAdd', querys)
  },
  // 修改自提点
  storeUpdate (querys) {
    return post('/shop/admin/AdminStore/storeUpdate', querys)
  },
  // 自提点详情
  storeInfo (querys) {
    return post('/shop/admin/AdminStore/storeInfo', querys)
  },
  // 上0 下1 架 删除-1
  storeStatusUpdate (querys) {
    return post('/shop/admin/AdminStore/statusUpdate', querys)
  },
  // 自提点列表
  storeList (querys) {
    return post('/shop/admin/AdminStore/storeList', querys)
  },
  // 模板列表
  purchaseList (querys) {
    return post('/shop/admin/AdminPurchase/tmpList', querys)
  },
  // 模板详情
  purchaseInfo (querys) {
    return post('/shop/admin/AdminPurchase/tmpInfo', querys)
  },
  // 新增模板
  purchaseAdd (querys) {
    return post('/shop/admin/AdminPurchase/tmpAdd', querys)
  },
  // 编辑模板
  purchaseUpdate (querys) {
    return post('/shop/admin/AdminPurchase/tmpUpdate', querys)
  },
  // 上下架模板
  purchaseStatusUpdate (querys) {
    return post('/shop/admin/AdminPurchase/tmpStatusUpdate', querys)
  },
  // 砍价活动列表
  bargainList (querys) {
    return post('/shop/admin/AdminBargain/atvList', querys)
  },
  // 砍价活动详情
  bargainInfo (querys) {
    return post('/shop/admin/AdminBargain/atvInfo', querys)
  },
  // 新增砍价活动
  bargainAdd (querys) {
    return post('/shop/admin/AdminBargain/atvAdd', querys)
  },
  // 编辑砍价活动
  bargainUpdate (querys) {
    return post('/shop/admin/AdminBargain/atvUpdate', querys)
  },
  // 上下架/删除砍价活动
  bargainStatusUpdate (querys) {
    return post('/shop/admin/AdminBargain/atvStatusUpdate', querys)
  },
  // 砍价活动参与情况
  bargainRecordList (querys) {
    return post('/shop/admin/AdminBargain/recordList', querys)
  },
  // 砍价活动设置
  bargainConfigInfo (querys) {
    return post('/shop/admin/AdminBargain/configInfo', querys)
  },
  // 编辑砍价活动设置
  bargainConfigUpdate (querys) {
    return post('/shop/admin/AdminBargain/configUpdate', querys)
  },
  // 批发价列表
  wholesaleList (querys) {
    return post('/shop/admin/AdminShopGoods/wholesaleList', querys)
  },
  // 批发价详情
  wholesaleInfo (querys) {
    return post('/shop/admin/AdminShopGoods/wholesaleInfo', querys)
  },
  // 新增批发价
  wholesaleAdd (querys) {
    return post('/shop/admin/AdminShopGoods/wholesaleAdd', querys)
  },
  // 编辑批发价
  wholesaleUpdate (querys) {
    return post('/shop/admin/AdminShopGoods/wholesaleUpdate', querys)
  },
  // 上下架/删除批发价
  wholesaleStatusUpdate (querys) {
    return post('/shop/admin/AdminShopGoods/wholesaleStatusUpdate', querys)
  },
  // 获取物流信息
  orderExpressInfo (querys) {
    return get('/shop/admin/AdminShopOrder/orderExpressInfo', querys)
  },
  // 修改发货信息
  expressUpdate (querys) {
    return post('/shop/admin/AdminShopOrder/expressUpdate', querys)
  },
  // 分享设置
  mallsShareInfo (querys) {
    return get('/shop/admin/AdminShopSetting/shareInfo', querys)
  },
  // 修改分享设置
  mallsShareUpdate (querys) {
    return post('/shop/admin/AdminShopSetting/shareUpdate', querys)
  },
  // 打印机列表
  mallsPrinterList (querys) {
    return get('shop/admin/AdminPrinter/printerList', querys)
  },
  // 打印机详情
  mallsPrinterInfo (querys) {
    return get('shop/admin/AdminPrinter/printerInfo', querys)
  },
  // 新增打印机
  mallsPrinterAdd (querys) {
    return post('shop/admin/AdminPrinter/printerAdd', querys)
  },
  // 编辑打印机
  mallsPrinterUpdate (querys) {
    return post('shop/admin/AdminPrinter/printerUpdate', querys)
  },
  // 选择自提点
  mallsStoreSelect (querys) {
    return get('shop/admin/AdminPrinter/storeSelect', querys)
  }
}
